package com.zjitc.service;

import com.zjitc.model.User;

import java.util.List;
import javax.mail.MessagingException;

/**
 * Created by LWW on 2018/4/19.
 */
public interface UserService {
    User login(String username, String password);

  boolean register(User user) throws MessagingException;

  User active(String code);

  List<User> findAllUser(Integer pageNum, Integer count);

  User findUser(String uid);

  void editUser(User user);


  void deleteUser(String uid);
}
